package com.kx.center.mappers;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.kx.center.entity.StoreAppAccount;
import com.kx.center.entity.StoreInfo;
import org.apache.ibatis.annotations.Param;

/**
 * @description 门店端登录账户 mapper 
 * @version 1.0
 * @author Scott 
 * @date 2015年12月17日 上午11:55:23
 */
public interface StoreAppAccountMapper {

	void createAccount(StoreAppAccount account);

	StoreAppAccount findAccountByUserId(String userId);

	void updateAppAccount(StoreAppAccount appAccount);

	StoreInfo findStoreInfoByStoreId(int storeInfoId);
	
	List<StoreAppAccount> findUserIdById(int id);
	
	StoreAppAccount findAccountByToken(String token);

	List<StoreAppAccount> findStoreAppAccountList(@Param("where")String where, @Param("order")String order, @Param("limitStr")String limitStr);

	List<StoreAppAccount> findAccountByStoreInfoId(Integer storeInfoId);

	void activateAccount(String userId);

	void updateAccount(StoreAppAccount account);

	void deleteAccount(int id);

	List<HashMap<String, Object>> findStoreByCompany(int companyId);

	StoreAppAccount findAccountById(int id);

	Map<String, Object> getPasswordAndSaltByUserId(String userId);

	void changePasswordByUserId(StoreAppAccount account);

	int findPageCount();

	List<StoreAppAccount> findAccountList(@Param("pageNow")int pageNow, @Param("pageSize")int pageSize);

}
